import target_api from "./api/target.json"
import target_model from "./models/target.json"

export default {
  swagger: "2.0",
  info: {
    description: "WebSOC API 文档",
    version: "1.0.0",
    title: "WebSOC API"
  },
  host: "localhost:8000",
  basePath: "/api",
  tags: [
    {
      name: "Target",
      description: "target API",
      externalDocs: {
        description: "Find out more",
        url: "https://gitlab.intra.knownsec.com/websoc/console/wassui"
      }
    },
    {
      name: "Task",
      description: "Task API",
      externalDocs: {
        description: "Find out more",
        url: "https://gitlab.intra.knownsec.com/websoc/console/wassui"
      }
    }
  ],
  schemes: ["http"],
  securityDefinitions: {
    authorization: {
      type: "apiKey",
      name: "authorization",
      in: "header"
    }
  },
  paths: {
    ...target_api
  },
  definitions: {
    ...target_model
  }
}
